package pl.gigiel.behaviour.util;

import com.jme.math.Vector3f;

public class RandomDirectionGenerator {
	private static final int MIN = -1;
	private static final int MAX = 1;

	public static Vector3f direction() {
		Vector3f result = new Vector3f();
		result.setX(Util.random(MIN, MAX));
		result.setY(Util.random(MIN, MAX));
		result.setZ(Util.random(MIN, MAX));
		result.normalizeLocal();
		return result;
	}
}
